Control Font Style Flag Constants
You can pass one or more control font style flag constants in the flags
field of the
control font style structure to specify the field(s) of the structure that should be applied to the control; see ControlFontStyleRec
. If none of the flags are set, the control uses the system font unless a control variant specifies use of a window font. The control font style flag constants are available with Appearance Manager 1.0 and later.
enum {
kControlUseFontMask = 0x0001,
kControlUseFaceMask = 0x0002,
kControlUseSizeMask = 0x0004,
kControlUseForeColorMask = 0x0008,
kControlUseBackColorMask = 0x0010,
kControlUseModeMask = 0x0020,
kControlUseJustMask = 0x0040,
kControlUseAllMask = 0x00FF,
kControlAddFontSizeMask = 0x0100
};
Constant descriptions
-
kControlUseFontMask
-
If the
kControlUseFontMask
flag is set (bit 0), the font
field of the control font style structure is applied to the control.
-
kControlUseFaceMask
-
If the
kControlUseFaceMask
flag is set (bit 1), the style
field of the control font style structure is applied to the control. This flag is ignored if you specify a meta font value; see Meta Font Constants
.
-
kControlUseSizeMask
-
If the
kControlUseSizeMask
flag is set (bit 2), the size
field of the control font style structure is applied to the control. This flag is ignored if you specify a meta font value; see Meta Font Constants
.
-
kControlUseForeColorMask
-
If the
kControlUseForeColorMask
flag is set (bit 3), the foreColor
field of the control font style structure is applied to the control. This flag only applies to static text controls.
-
kControlUseBackColorMask
-
If the
kControlUseBackColorMask
flag is set (bit 4), the backColor
field of the control font style structure is applied to the control. This flag only applies to static text controls.
-
kControlUseModeMask
-
If the
kControlUseModeMask
flag is set (bit 5), the text mode specified in the mode
field of the control font style structure is applied to the control.
-
kControlUseJustMask
-
If the
kControlUseJustMask
flag is set (bit 6), the just
field of the control font style structure is applied to the control.
-
kControlUseAllMask
-
If
kControlUseAllMask
is used, all flags in this mask will be set except kControlUseAddFontSizeMask
.
-
kControlUseAddFontSizeMask
-
If the
kControlUseAddFontSizeMask
flag is set (bit 8), the Dialog Manager will add a specified font size to the
size
field of the control font style structure. This flag is ignored if you specify a meta font value; see Meta Font Constants
.
© 1998 Apple Computer, Inc.